import { http } from '@/utils/http/axios';

export interface StatChange {
  type: number;
  status: string;
  userId: number;
}

/**
 * 每日统计数据创建
 */
export function AddstatisticsDaily(params) {
  return http.request({
    url: '/system/statistics/daily/add',
    method: 'POST',
    params,
  });
}

/**
 * 每日数据统计列表
 */
export function getStatisticsDailyList(params) {
  return http.request({
    url: '/system/statistics/daily/list',
    method: 'POST',
    params,
  });
}

/**
 * 活跃留存
 */
export function getStatisticsArppuList(params) {
  return http.request({
    url: '/system/activeRetention',
    method: 'POST',
    params,
  });
}

/**
 * LTV
 */
export function getStatisticsLtvList(params) {
  return http.request({
    url: '/system/ltvRecord',
    method: 'POST',
    params,
  });
}

/**
 * roi数据
 */
export function getStatisticsRoiResList(params) {
  return http.request({
    url: '/system/roiRecord',
    method: 'POST',
    params,
  });
}

/**
 * roi消耗
 */
export function setStatisticsRoiExpand(params) {
  return http.request({
    url: '/system/roiExpend',
    method: 'POST',
    params,
  });
}

/**
 * 区服数据统计列表
 */
export function getStatisticsGameArea(params) {
  return http.request({
    url: '/system/statistics/game/areaList',
    method: 'POST',
    params,
  });
}

/**
 * 主播渠道数据统计列表
 */
export function getAnchorRegistData(params) {
  return http.request({
    url: '/system/statistics/anchor/totalRegist',
    method: 'POST',
    params,
  });
}

/**
 * 渠道付费留存统计
 */
export function getRechargeRetention(params) {
  return http.request({
    url: '/system/rechargeRetention',
    method: 'POST',
    params,
  });
}

/**
 * 客服收录
 */
 export function CustomerRecordList(params) {
  return http.request({
    url: '/system/ListPlayerRecord',
    method: 'POST',
    params,
  });
}

/**
 * 客服编号列表
 */
 export function CustomerAccountList() {
  return http.request({
    url: '/system/customerObjectList',
    method: 'POST',
  });
}

/**
 * 维护编辑
 */
 export function CustomerEdit(params) {
  return http.request({
    url: '/system/editPlayerRecord',
    method: 'POST',
    params,
  });
}
